package com.chuangke.mds.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chuangke.mds.dao.TechnologyProcessProcedureNodeDao;
import com.chuangke.mds.entity.TechnologyProcessProcedureNode;
import com.chuangke.mds.service.TechnologyProcessProcedureNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Throwable.class)
public class TechnologyProcessProcedureNodeServiceImpl implements TechnologyProcessProcedureNodeService {
    @Autowired
    private TechnologyProcessProcedureNodeDao processProcedureDao;
    @Override
    public TechnologyProcessProcedureNode getByProcedureId(String id) {
        return processProcedureDao.getOne(new QueryWrapper<TechnologyProcessProcedureNode>().lambda().eq(TechnologyProcessProcedureNode::getProcedureId, id));
    }
}
